TeamScheduleServiceglobal with sharing class TeamScheduleService this class contains the team schedule api implementation, including sub-classes for team schedule creation requests. Methods
createTeamScheduleFromTemplateglobal Set<Id> createTeamScheduleFromTemplate(Id teamId, List<TeamScheduleService.CreateTeamScheduleFromTemplateRequest> createTeamScheduleFromTemplateRequest) This method creates a new team schedule from a team schedule template using the details provided from the CreateTeamScheduleFromTemplateRequest list. Input Parameters
Exceptions Thrown
Return ValueThis service returns the ids of the newly created team schedules. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code createCustomTeamScheduleglobal Set<Id> createCustomTeamSchedule(Id teamId, List<TeamScheduleService.CreateCustomTeamScheduleRequest> createCustomTeamScheduleRequest) This method creates a custom team schedule using details provided from the CreateCustomTeamScheduleRequest list. Input Parameters
Exceptions Thrown
Return ValueThis service returns the ids of the newly created team schedules. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code TeamScheduleService.CreateTeamScheduleRequestglobal abstract class CreateTeamScheduleRequest the request structure for the createteamschedulerequest class. Properties
TeamScheduleService.CreateTeamScheduleFromTemplateRequestglobal class CreateTeamScheduleFromTemplateRequest extends CreateTeamScheduleRequest the request structure for creating a team schedule using the team schedule template. This class extends TeamScheduleService.CreateTeamScheduleRequest Properties
MethodsCreateTeamScheduleFromTemplateRequestglobal CreateTeamScheduleFromTemplateRequest(Id teamId, Date effectiveDate, Id templateId) A default constructor with the minimum required properties. Input Parameters
TeamScheduleService.CreateCustomTeamScheduleRequestglobal class CreateCustomTeamScheduleRequest extends CreateTeamScheduleRequest the request structure for createcustomteamschedulerequest class. This class extends TeamScheduleService.CreateTeamScheduleRequest Properties
MethodsCreateCustomTeamScheduleRequestglobal CreateCustomTeamScheduleRequest(Id teamId, Date effectiveDate, list<TeamScheduleService.TeamScheduleSlotDetail> slots) A default constructor for the CreateCustomTeamScheduleRequest class with the minimum required properties. Input Parameters
TeamScheduleService.TeamScheduleSlotDetailglobal class TeamScheduleSlotDetail This method is used to map data to its respective DTO. Properties
MethodsTeamScheduleSlotDetailglobal TeamScheduleSlotDetail(String slotName, String startTime, String endTime, Decimal hours, Integer capacity, Id slotTypeId) A default constructor with the minimum required properties. Input Parameters
|